package com.qiaofei.mapper;

import com.qiaofei.pojo.OldHouse;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDate;
import java.util.List;
import java.util.Map;

/**
 * 出租管理
 */
@Mapper
public interface OldHouseMapper {

    /**
     * 列表查询
     * @return
     */
    List<OldHouse> list(Map<String ,Object> params, LocalDate begin, LocalDate end);

    int insert(OldHouse oldHouse);

    int update(OldHouse oldHouse);

    List<OldHouse> getByIds(List<Integer> ids);

    int delete(List<Integer> ids);
}
